import fetch from "@/utils/fetch";

export default {
    login: async (data) => {
        return fetch("/api/sessionservice/session/localLogin", {
            method: "post",
            data: data
        })
    },
    logout: async (data) => {
        return fetch("/api/sessionservice/session/logout", {
            method: "post",
            data: data,
        })
    },
    getSessionUser: async () => {
        return fetch("/api/sessionservice/session/getSessionUser", {
            method: "get"
        })
    },
    // 当前学年学期
    currentTermCalendar: async () => {
        return fetch("/api/baseresservice/schoolCalendar/currentTermCalendar", {
            method: "get",
            withLoading:true
        })
    }
}